Ext.onReady(function() {

//	var dataStore = new Ext.data.JsonStore({
//		fields:['name','percent'],
//		data:[
//			{name:'1' , percent:2},
//			{name:'2' , percent:4},
//			{name:'3' , percent:1},
//			{name:'4' , percent:3},
//			{name:'5' , percent:5}
//		]
//	});//end of dataStore
	
	//Model BloodPressure
	Ext.regModel('BloodPressure',{
		fields : [
			{name : 'low'},
			{name : 'examTime'}
		]
	});//end of BloodPressure
	
	var bloodPressureStore = Ext.create('Ext.data.Store',{ 
		model : 'BloodPressure',
		proxy : {
			type : 'ajax',
			//url : 'bloodPressureAction.do?method=selectListPage&low1='+low1+'&low2='+low2+'&high1='+high1+'&high2='+high2+"&examTimeStart="+examTimeStart+"&examTimeEnd"+examTimeEnd,
			url : 'bloodPressureAction.do?method=selectListPage',
			reader : {
				type : 'json',
				root : 'data',
				totalProperty : 'totalCount'
			}
		}
	});//end of bloodPressureStore	

	Ext.create('Ext.panel.Panel',{
		title:'chart line',
		renderTo:Ext.getBody(),
		layout:'fit',
		height:400,
		width:800,
		items:[{
			xtype:'chart',
			store:bloodPressureStore,
			axes:[{
				type:'Numeric',
				title:'pressure',
				dashSize:10,
				position:'left',
				fields:['low']
			},{
				type:'Time',
				position:'bottom',
				fields:['examTime'],
				title:'examTime',
				grid:true
			}],
			series:[{
				type:'line',
				axis:'left',
				xField:'examTime',
				yField:'low'
			}]
			
		}]//end of items
		
		
	});


});//end of Ext.onReady